package com.emip.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emip.bean.ImageBean;
import com.emip.dao.ImageDAO;
import com.emip.service.ImageService;

@Service("imageService")
public class ImageServiceImpl implements ImageService {

	@Autowired
	ImageDAO imageDAO;
	
	public void add(ImageBean image) {
		imageDAO.add(image);
	}

	public List<ImageBean> findByDate(String siteId, String startDate,
			String endDate, int page, int size) {
		return imageDAO.findByDate(siteId, startDate, endDate, page, size);
	}

	public long getCount(String siteId, String startDate, String endDate) {
		return imageDAO.getCount(siteId, startDate, endDate);
	}

}
